<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page import="java.util.ArrayList, edu.wfmanage.models.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>WorkFlow items</title>
</head>
<body>
<h1 align="center">Claims to be Approved</h1> 
<table align="center">
<tr> 
    <th><h2>RequestId</h2></th>
    <th><h2>Submitted by</h2></th>
    <th><h2>Amount claimed</h2></th>
    <th><h2>Amount Approved</h2></th>
    <th><h2>Finance Approval</h2></th>
    </tr>
<s:if test="%{financeHistory.size()==0}">
<h2>You have no requests under your workflow</h2>
</s:if>
<s:else>
<s:iterator value="financeHistory">
<tr>
<td><h3><s:property value="RequestId"/></h3> </td>
<td><h3><s:property value="submittedby"/></h3> </td>
<td><h3><s:property value="Fare"/></h3> </td>
<td><h3><s:property value="ApprovedAmount"/></h3> </td>
<td><h3><s:property value="financeStatus"/></h3> </td>
<td>
</tr>
</s:iterator>
</s:else>
</table>
<center>
<s:form action="logout" align="center">
<s:submit name = "submit" value="Back to Home Page" align="center"/>
</s:form>
</center>
</body>
</html>